package sqlmapper.impl;

import Dao.Dao_type;
import enty.Student;
import enty.queryVo;
import org.apache.ibatis.session.SqlSession;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

public class Studentimpl_spring extends SqlSessionDaoSupport implements Dao_type
{

    public Student selectone(int studentno) {

        SqlSession sqlSession = super.getSqlSession();
        sqlSession.commit();
        Student student= sqlSession.selectOne("selectone",studentno);
        sqlSession.close();
        return student;
    }


    public List<Student> SelectByname(String name) {
        return null;
    }


    public int Delete(int studentno) {
        return 0;
    }


    public int Update(Student student) {
        return 0;
    }


    public int Insert(Student student) {
        return 0;
    }


    public List<Student> SelectByname1(queryVo queryVo) {
        return null;
    }
}
